<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <title>Title</title>
</head>

<style>
    body {
        text-align: center;
        font-size: 14px;
        line-height: 1.5rem;
        margin: auto;
    }

    .timeline {
        position: relative;
        text-align: left;
    }

    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 18px;
        height: 100%;
        width: 2px;
        background: url("/images/v-line.png");
    }

    .ctimeline-img {
        position: relative;
        left: 12px;
        top: 15px;
        width: 13px;
        height: 13px;
    }

    .cd-date {
        font-size: 12px;
        color: #cccccc;
    }

    .item {
        float: left;
        clear: both;
        margin-bottom: 23px;
    }

    /* 向上的箭头 */
    .dot-top {
        position: relative;
        top: 21px;
        left: 3rem;
        font-size: 0;
        line-height: 0;
        border: 10px dashed #eeeeee;
        border-top-width: 0;
        border-right-color: transparent;
        border-bottom-style: solid;
        border-left-color: transparent;
    }

    .msgBox {
        border: 2px solid #eeeeee;
        width: 100%;
        padding: 2%;
        margin-top: 2%;
    }

    .r-info {
        position: relative;
        top: 0px;
        left: 30px;
        width: 80%
    }

    .ctimeline-img:before {
        position: absolute;
        left: -5.5px;
        top: 0;
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 7px;
        border: 2px solid #d00000;
        background-color: #fff;
    }

    /*.r-info {*/
    /*    position: relative;*/
    /*    padding: 0 0 10px 20px;*/
    /*    border-left: 1px solid #e1e1e1;*/
    /*    list-style: none;*/
    /*}*/
</style>
<body>
<div>
    <h3>时间轴</h3>
    <section class="timeline" style="">
        <div class="timeline-block">
            <div class="ctimeline-img cd-picture">
            </div>
            <span class="item dot-top"></span>
            <div class="r-info">
                <div>
                    <text style="margin: -21px">我的2017</text>
                </div>
                <div class="msgBox">
                    <div>吃饭睡觉写代码</div>
                    <span class="cd-date">2017-12-16 08:08:08</span>
                </div>
            </div>
        </div>
        <div class="timeline-block">
            <div class="ctimeline-img cd-picture">
            </div>
            <span class="item dot-top"></span>
            <div class="r-info">
                <div>
                    <text style="margin: -21px">我的2016</text>
                </div>
                <div class="msgBox">
                    <div>吃饭睡觉写代码</div>
                    <span class="cd-date">2016-12-16 08:08:08</span>
                </div>
            </div>
        </div>
    </section>
</div>
</body>
